package com.zkzx.wlhy.adaptor.clinet.order;

import com.zkzx.wlhy.adaptor.clinet.ResultVO;
import com.zkzx.wlhy.adaptor.config.feign.FeignConfiguration;
import com.zkzx.wlhy.adaptor.controller.order.param.OrderDTO;
import com.zkzx.wlhy.adaptor.controller.order.vo.WhOrderVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;

/**
 * @author young Email:yanghui@zkraising.com
 * @description
 * @company 北京中科智兴物联科技有限公司 @版权所有
 * @since 2021年05月19日 17时20分
 */
@FeignClient(name = "WHORDER",url = "${wh.website}",configuration = FeignConfiguration.class)
public interface WhOrderFeign {

    @PostMapping("/push/waybill/addWaybill")
    ResultVO<WhOrderVO> add(@RequestBody @Valid OrderDTO dto);

    @GetMapping("/push/waybill/getWaybillInfo")
    ResultVO get(@RequestParam("waybillId") String waybillId);
}
